import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false;
// 公用文件
import "./utils/rem.js";
import funs from './utils/commonFun.js'
import './assets/css/common.css'
Vue.prototype.$funs = funs;
// 路由
import router from './router/index'
// vuex
import store from './store/index';
// axios、接口请求
import axios from 'axios'
Vue.prototype.axios = axios;
import apiRequest from './request/api.js'
Vue.prototype.$api = apiRequest;
// 模拟数据
require('./mock');
// 过滤器
import filter from './utils/filter.js'
Object.keys(filter).forEach(key => Vue.filter(key, filter[key]));
// 表单数据校验
import verify from './utils/verification.js'
Vue.prototype.$verify = verify;

// element
import Element from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(Element);
// 国际化
import i18n from './utils/i18n/index.js'
new Vue({
    render: h => h(App),
    router,
    store,
    i18n
}).$mount('#app')